{template 'total/header'}

<style>
    .hp-visited a:visited{color: #444;}
    .input-append button{font-size:12px;}
</style>
<div style="clear:both">
    <h5>
        <span class="add-on"><i class="icon-calendar"></i> 周活跃构成 </span>
    </h5>
</div>

<table class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th><center>周次</center></th>
            <th><center>新增用户</center></th>
            <th><center>活跃用户</center></th>
            <th><center>本周回流</center></th>
            <th><center>连续2周活跃</center></th>
            <th><center>连续3周活跃</center></th>
            <th><center>连续4周活跃</center></th>
            <th><center>连续5周活跃</center></th>
        </tr>
    </thead>
    <tbody>
        {loop $totalWeeks $v}
        <tr>
            <td><center>{$v['yw']} ({eval echo date('n.j', $v['begin_time'])}-{eval echo date('n.j', $v['end_time'])})</center></td>
            <td><center>{eval echo $v['new_android']+$v['new_ios']} <code style="color:#333">{$v['new_android']}</code> <code style="color:#333">{$v['new_ios']}</code></center></td>
            <td><center>{eval echo $v['android']+$v['ios']} <code style="color:#333">{$v['android']}</code> <code style="color:#333">{$v['ios']}</code></center></td>
            <td><center>{eval echo $v['back_android']+$v['back_ios']} <code style="color:#333">{$v['back_android']}</code> <code style="color:#333">{$v['back_ios']}</code></center></td>
            <td><center>{eval echo $v['stay2_android']+$v['stay2_ios']} <code style="color:#333">{$v['stay2_android']}</code> <code style="color:#333">{$v['stay2_ios']}</code></center></td>
            <td><center>{eval echo $v['stay3_android']+$v['stay3_ios']} <code style="color:#333">{$v['stay3_android']}</code> <code style="color:#333">{$v['stay3_ios']}</code></center></td>
            <td><center>{eval echo $v['stay4_android']+$v['stay4_ios']} <code style="color:#333">{$v['stay4_android']}</code> <code style="color:#333">{$v['stay4_ios']}</code></center></td>
            <td><center>{eval echo $v['stay5_android']+$v['stay5_ios']} <code style="color:#333">{$v['stay5_android']}</code> <code style="color:#333">{$v['stay5_ios']}</code></center></td>
        </tr>
        {/loop}
    </tbody>
</table>

{template 'total/footer'}